<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>

<div class="container">
    
    <form:form action="new" method="post" commandName="usuario" cssClass="form-horizontal">
        <br><br>
        <h3>Registro de Torneo</h3> 
        <div class="row">
        <div class="hero-unit-min">  
        <table align="center" border="0" cellspacing="2" cellpadding="4" width="100%" height="100%" bordercolor="red" >
            <tr>
                <td>Usuario:</td>
                <td>
                    <form:input path="nousuario"></form:input>
                    <form:errors path="nousuario" cssstyle="color:red"></form:errors>
                </td>
                <td>Nro.Doc.:</td>
                <td>
                    <form:input path="nudocumento"></form:input>
                    <form:errors path="nudocumento" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr>
                <td>Sexo</td>
                <td>
                    <form:select path="flsexo">
                        <option value="M">Masculino</option>>
                        <option value="F">Femenino</option>>
                    </form:select>
                    <form:errors path="flsexo" cssstyle="color:red"></form:errors>
                </td>
                <td>Fecha Nac.</td>
                <td>
                    <form:input type="Date" path="fcnacimiento"></form:input>
                    <form:errors path="fcnacimiento" cssstyle="color:red"></form:errors>
                </td>
            </tr>                
            <tr>
                <td>Tipo:</td>
                <td>
                    <form:select path="flusuario" >
                        <option value="A">Administrador</option>>
                        <option value="U">Usuario</option>>
                    </form:select>
                    <form:errors path="flusuario" cssstyle="color:red"></form:errors>
                </td>
            </tr>

                
            <tr>
                <td>Correo :</td>
                <td>
                    <form:input path="nocorreo"></form:input>
                    <form:errors path="nocorreo" cssstyle="color:red"></form:errors>
                </td>
                <td>Password :</td>
                <td>
                    <form:input path="txclave"></form:input>
                    <form:errors path="txclave" cssstyle="color:red"></form:errors>
                </td>
            </tr>

            <tr>
                <td>Direccion :</td>
                <td>
                    <form:input path="txdireccion"></form:input>
                    <form:errors path="txdireccion" cssstyle="color:red"></form:errors>
                </td>

                <td>Celular :</td>
                <td>
                    <form:input path="nucelular"></form:input>
                    <form:errors path="nucelular" cssstyle="color:red"></form:errors>
                </td>
            </tr>

            <tr>
                <td> Tarjeta Cred. :</td>
                <td>
                    <form:input path="nutarjetacredito"></form:input>
                    <form:errors path="nutarjetacredito" cssstyle="color:red"></form:errors>
                </td>
                <td>Cod. Verificacion :</td>
                <td>
                    <form:input path="coverificacion"></form:input>
                    <form:errors path="coverificacion" cssstyle="color:red"></form:errors>
                </td>
            </tr>
            <tr align="center">
                <td colspan="4">
                    <input name="" value="Grabar" type="submit" class="btn btn-mini btn-primary">
                    <a style="margin-left: 5px;" href="<c:url value='/pages/usuarios/index'/>" class="btn btn-mini btn-primary">Cancelar</a>
                </td>
            </tr>
           </table>     
        </div>
        </div>
    </form:form>
</div>
